package com.seadragon.app.ksr.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity
@Table(name = "SEARCH_HISTORY", schema="STAGING")
public class SearchHistory{
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEARCHISTORYIDSEQ")
	@SequenceGenerator(name = "SEARCHISTORYIDSEQ", sequenceName = "STAGING.SEARC_HISTORY_ID_SEQ", schema="STAGING")	
	private long id;

	@Column(name="KEYWORD")
	private String keyword;

	@Column(name="LOCATION")
	private String location;

	@Column(name="DATE_SEARCHED")
	@Temporal(TemporalType.TIMESTAMP)
	private Date dateSearched;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public Date getDateSearched() {
		return dateSearched;
	}

	public void setDateSearched(Date dateSearched) {
		this.dateSearched = dateSearched;
	}

}
